package StudentsManage;


public class ViewStu {
    public static void viewStu() {
        if(Student.students.isEmpty()){
            System.out.println("无信息，请先添加信息再查询！");
        }else{
            System.out.println("学号   姓名    年龄     居住地");
            for (Student student : Student.students){
                System.out.println(student.id + "      " + student.name + "      " + student.age+"岁" + "      " + student.address);
            }
        }
    }
}
